package com.ysynzehao.dubbo.order;

import java.io.IOException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ysynzehao.dubbo.order.model.Order;
import com.ysynzehao.dubbo.service.order.OrderService;

public class ApplicationTest {
	
	private static OrderService orderService;
	
	@SuppressWarnings("resource")
	public static void main(String[] args) throws IOException {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:application-provider.xml");
		orderService = applicationContext.getBean(OrderService.class);
		Order order = orderService.getOrder(1l);
		System.out.println(order);
		System.in.read();
	}
	
}
